package ran.constants;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ran
 * Date: 2025-10-09
 * Time: 15:31
 */
public class RedisCacheConstants {
    public static final String LOGIN_TOKEN_KEY = "login_token:"; // 存储身份信息key的前缀
    public static final long EXP = 720; // 存储的值的过期时间
    public static final long REFRESH_TIME = 180; // 有效期的临界时间
    public static final String MAIL_CODE_KEY = "m:c:"; // 邮箱验证码的key
    public static final String SEND_TIME_KEY = "s:t:"; // 验证码发送次数key

    public static final String EXAM_UNFINISHED_LIST = "e:t:l:"; // 未完赛的竞赛
    public static final String EXAM_HISTORY_LIST = "e:h:l:";   // 历史竞赛
    public static final String EXAM_DETAIL = "e:d:";           // 竞赛详情

    public static final String USER_EXAM_LIST = "u:e:l:"; // 我的竞赛列表/用户竞赛列表

    public static final String USER_DETAIL = "u:d:";           // 用户详情
    public static final Long USER_EXP = 10L;           //  设置/延长 用户有效期时间

    public static final String USER_UPLOAD_TIMES_KEY = "u:u:t:"; // 上传的头像的key
    public static final String QUESTION_LIST = "q:l:"; // 题目列表集合
    public static final String EXAM_QUESTION_LIST = "e:q:l:"; // 题目列表集合


}
